package com.home.Entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="TTGOIMON")
public class TTGoiMon {
	
	@Id
	@Column(name="TTM_MASO")
	private long maSo;
	@ManyToOne
	@JoinColumn(name="TTM_MON")
	private Mon mon;
	@ManyToOne
	@JoinColumn(name="TTM_BAN")
	private Ban ban;
	@Column(name="TTM_GHICHU")
	private String ghiChu;
	@Column(name="TTM_DAPUNG")
	private boolean dapUng;
	@Column(name="TTM_TINHTIEN")
	private boolean tinhTien;
	@Column(name="TTM_THOIGIANGOI")
	private Date tgGoi;
	@Column(name="TTM_THOIGIANNHAN")
	private Date tgNhan;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Mon getMon() {
		return mon;
	}
	public void setMon(Mon mon) {
		this.mon = mon;
	}
	public Ban getBan() {
		return ban;
	}
	public void setBan(Ban ban) {
		this.ban = ban;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public boolean isDapUng() {
		return dapUng;
	}
	public void setDapUng(boolean dapUng) {
		this.dapUng = dapUng;
	}
	public boolean isTinhTien() {
		return tinhTien;
	}
	public void setTinhTien(boolean tinhTien) {
		this.tinhTien = tinhTien;
	}
	public Date getTgGoi() {
		return tgGoi;
	}
	public void setTgGoi(Date tgGoi) {
		this.tgGoi = tgGoi;
	}
	public Date getTgNhan() {
		return tgNhan;
	}
	public void setTgNhan(Date tgNhan) {
		this.tgNhan = tgNhan;
	}
	
	
}
